package com.base.cn.platform.os.entity.agent.settlement;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import com.base.cn.platform.os.entity.agent.user.AgentUser;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 推广员结算记录Entity
 *
 * @author LIZHIPENG
 * @create 2018-05-14 下午 5:36
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AgentSettlement extends BaseEntity {

    /**推广员ID*/
    private BigDecimal agentUserId;
    /**结算类型：1.随时结、2.月结、3.年结*/
    private Integer settType;
    /**结算周期数*/
    private Integer cycleNum;
    /**结算金额*/
    private Double balancePrice;
    /**推广收益*/
    private Double spreadPrice;
    /**奖励金收益*/
    private Double rewardPrice;
    /**结算周期开始时间*/
    private Date startTime;
    /**结算周期结束时间*/
    private Date endTime;
    /**结算申请来源:  1.H5,  2.APP*/
    private Integer settlementFrom;
    /**第三方订单号*/
    private String thirdOrderNo;
    /**状态：1.未结算，2.已结算*/


    //================= 扩展数据 =================
    /**推广员信息*/
    private AgentUser agentUser;

    //================= 查询条件 =================
    private Integer count;
    /**推广员名称*/
    private String agentUserName;
    /**开始时间*/
    private String beginTime;
    /**结束时间*/
    private String overTime;
    /**推广员级别：1.一级推广员，2.二级推广员*/
    private Integer userType;
}
